package cn.toma.model.sys;

import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * 部门表
 */
@Data
@Table(name = "t_dept")
public class Dept implements Serializable
{

	private static final long serialVersionUID = -7790334862410409053L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long deptId;

	private Long parentId;

	@NotBlank(message = "{required}")
	@Size(max = 20, message = "{noMoreThan}")
	private String deptName;

	private Double orderNum;

	private Date createTime;

	private Date modifyTime;

	private transient String createTimeFrom;

	private transient String createTimeTo;

}